package com.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface Users {
	public Map<String,Object> query(@Param("account") String account);
	
	public void add(
			@Param("account") String account,
			@Param("password") String password,
			@Param("reg_date") String reg_date);
	
	public Map<String,Object> queryone(@Param("account") String account,@Param("password") String password);
	
	public Map<String,Object> queryusers(@Param("id") String id);
	
	public Map<String,Object> querymoney(@Param("user_id") String user_id);
	
	public List<Map<String, Object>> queryjinqi(@Param("user_id") String user_id);
	public List<Map<String,Object>> queryjinqi1(@Param("user_id") String user_id);
	
	public void addout(
			
			@Param("user_id") String user_id,
			@Param("date_time") String date_time,
			@Param("place") String place,
			@Param("money_out") String money_out,
			@Param("kind") String kind,
			@Param("remark") String remark);
	
	public void addin(
			
			@Param("user_id") String user_id,
			@Param("date_time") String date_time,
			@Param("place") String place,
			@Param("money_in") String money_in,
			@Param("kind") String kind,
			@Param("remark") String remark);
	
	public Map<String,Object> queryid();

	public Map<String,Object> querymonth(@Param("user_id") String user_id);
	
	public List<Map<String,Object>> querykind(@Param("user_id") String user_id);
	
	public List<Map<String,Object>> queryevery(
			
			@Param("user_id") String user_id,
			@Param("date_time") String date_time,
			@Param("place") String place,
			@Param("money_in") String money_in,
			@Param("money_out") String money_out,
			@Param("kind") String kind,
			@Param("remark") String remark
			);
	
	public Map<String,Object> querydetails(@Param("id") String id,@Param("user_id") String user_id);
	
	public void del(@Param("id") String id,@Param("user_id") String user_id);
	
}
